<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
   xmlns:ui="http://java.sun.com/jsf/facelets"
   xmlns:h="http://java.sun.com/jsf/html"
   xmlns:f="http://java.sun.com/jsf/core"
   xmlns:a4j="http://richfaces.org/a4j"
       xmlns:rich="http://richfaces.org/rich">

   		<ui:composition template="../../templates/templateJsf.xhtml">
   
   		<ui:define name="pageTitle">Applicazioni</ui:define>
  
		<ui:define name="pageHeader">Applicazioni</ui:define>
		
		<ui:define name="leftBody">
			<ui:include src="../richMenu.xhtml" />
		</ui:define>
		
		
		<ui:define name="pageHeader">
					<ui:include src="/areaPrivata/adminMenu.xhtml" />
		</ui:define>
	
 
    <ui:define name="centerBody">
    	<h:outputStylesheet>
        a.no-decor>img {
        border: none;
        }
    </h:outputStylesheet>
    <h:form >
    <rich:panel header="Visualizza Appplicazioni" style=" height : 500px;" >
    	
        <rich:dataTable value="#{handlerApplicazione.listaApplicazioni}" var="a" iterationStatusVar="it" id="table" rows="15">
           
           <rich:column>
            	<f:facet name="header">Id</f:facet>
            	<h:outputText value="#{a.id}" />
          	</rich:column>
            <rich:column>
                <f:facet name="header">Nome</f:facet>
            	<h:outputText value="#{a.nome}" />
            </rich:column>
            <rich:column>
                <f:facet name="header">Descrizione</f:facet>
            	<h:outputText value="#{a.descrizione}" />
            </rich:column>
          	<rich:column>
				<h:commandLink value="Modifica" action="#{handlerApplicazione.visualizzaToModifica(a.id)}" />
            </rich:column>
            <rich:column>
            	<h:commandLink value="Elimina" action="#{handlerApplicazione.deleteApplicazione(a)}" />
            </rich:column>
           
        </rich:dataTable><br/>
    			<h:commandButton value="Inserisci" action="inserisciApplicazione.jsf" />
    	
    	
    	
    </rich:panel>
   </h:form>
    </ui:define>
 
   
</ui:composition>
</html>
